package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StationHourKpiMapper;
import com.ruoyi.system.domain.StationHourKpi;
import com.ruoyi.system.service.IStationHourKpiService;

/**
 * 电站小时数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-19
 */
@Service
public class StationHourKpiServiceImpl implements IStationHourKpiService 
{
    @Autowired
    private StationHourKpiMapper stationHourKpiMapper;

    /**
     * 查询电站小时数据
     * 
     * @param id 电站小时数据主键
     * @return 电站小时数据
     */
    @Override
    public StationHourKpi selectStationHourKpiById(Long id)
    {
        return stationHourKpiMapper.selectStationHourKpiById(id);
    }

    /**
     * 查询电站小时数据列表
     * 
     * @param stationHourKpi 电站小时数据
     * @return 电站小时数据
     */
    @Override
    public List<StationHourKpi> selectStationHourKpiList(StationHourKpi stationHourKpi)
    {
        return stationHourKpiMapper.selectStationHourKpiList(stationHourKpi);
    }

    /**
     * 新增电站小时数据
     * 
     * @param stationHourKpi 电站小时数据
     * @return 结果
     */
    @Override
    public int insertStationHourKpi(StationHourKpi stationHourKpi)
    {
        return stationHourKpiMapper.insertStationHourKpi(stationHourKpi);
    }

    /**
     * 修改电站小时数据
     * 
     * @param stationHourKpi 电站小时数据
     * @return 结果
     */
    @Override
    public int updateStationHourKpi(StationHourKpi stationHourKpi)
    {
        return stationHourKpiMapper.updateStationHourKpi(stationHourKpi);
    }

    /**
     * 批量删除电站小时数据
     * 
     * @param ids 需要删除的电站小时数据主键
     * @return 结果
     */
    @Override
    public int deleteStationHourKpiByIds(Long[] ids)
    {
        return stationHourKpiMapper.deleteStationHourKpiByIds(ids);
    }

    /**
     * 删除电站小时数据信息
     * 
     * @param id 电站小时数据主键
     * @return 结果
     */
    @Override
    public int deleteStationHourKpiById(Long id)
    {
        return stationHourKpiMapper.deleteStationHourKpiById(id);
    }
}
